-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: render markdown in calendar event descriptions #76
base: main
Are you sure you want to change the base?
feat: render markdown in calendar event descriptions #76
Conversation
Deployment of preview was successful: https://xHain-hackspace-xhain-website-pr-76.surge.sh |
layouts/calendar/list.html
Outdated
@@ -82,4 +82,8 @@ <h1 id="article-title">{{ .Title }}</h1> | |||
aria-modal="true" | |||
></div> | |||
</main> | |||
|
|||
{{/* render the event descriptions as markdown */}} | |||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not load libraries from external sources. Include it in the codebase, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it this way since we don't currently use any package managers. If that's the preferred option I'll refactor.
842cf07
to
90b46f0
Compare
|
||
* just edit new post in the "content"-folder | ||
- just edit new post in the "content"-folder | ||
|
||
## Calendar | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting changes were made by prettier to bring the file in line with best practices
This resolves #66 and also adds the option to format calendar descriptions better